

class Relics:
    def __init__(self, type, properties):
        self.type=type
        self.properties={k:sum([Relics.prop_dict[k]*x for x in v]) for k,v in properties.items()}


Relics.prop_rate = [0.7, 0.8, 0.9, 1.0]
Relics.prop_dict = {
    'hp': 298.75,
    'atk': 19.45,
    'def': 23.15,
    'hp_r': 5.83,
    'atk_r': 5.83,
    'def_r': 7.29,
    'crit': 3.89,
    'crit_atk': 7.77,
    'master': 23.31,
    'charge': 6.48,
}